package com.tianhui.consignortwofei.pattern.orderOprate.impl;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.mvp.model.enty.OrderOperateInfo;
import com.tianhui.consignortwofei.mvp.ui.activity.SourceDetailListActivity;
import com.tianhui.consignortwofei.pattern.orderOprate.IOrderOperate;

/**
 * @author fgs
 * @date 2020/9/7
 * @description 调度明细
 **/
public class SourceDetailOperate implements IOrderOperate {
    @Override
    public void orderOperate(Context context, OrderOperateInfo operateInfo) {
        Bundle bundle = new Bundle();
        bundle.putParcelable(KeyValue.KEY_ORDER_INFO, operateInfo.orderInfo);
        Intent intent = new Intent(context, SourceDetailListActivity.class);
        intent.putExtras(bundle);
        context.startActivity(intent);
    }
}
